<?php

//调试状态
define('DEBUG', 0);
define('_DEBUG_', 0);
define('DS', DIRECTORY_SEPARATOR);

DEBUG ? error_reporting(E_ALL & ~E_NOTICE) : error_reporting(E_ERROR);

//指定时区
date_default_timezone_set('Asia/Shanghai');

//关闭gpc
@set_magic_quotes_runtime(0);

//定义网站根路径
define('ROOT_DIR', dirname(__FILE__) . DS);
define('LIBRARY_DIR', ROOT_DIR  . 'library' . DS);
define('MODEL_DIR', ROOT_DIR . 'model' . DS);    
define('VIEW_DIR', ROOT_DIR . 'view' . DS);
define('LIRBARY_DIR', ROOT_DIR . 'library' . DS);

#define('DB_HOST', 'vm-58-215-170-181.shengyun.grandcloud.cn');
#define('DB_PORT', 3306);
#define('DB_USER', 'root');
#define('DB_PWD', '1234569');

define('DB_HOST', 'localhost');
define('DB_USER', 'u2');
define('DB_NAME', 'newbilove');
define('DB_PWD', '8118');

define('TIMEOUT', 15);

$ROUTER = array("GETUSERINFO" =>"character.php");
$WinBoastGame= array("Character" => array("score"=>array("value"=>5), "wincount"=>array("value"=>1)));
$LoseBoastGame = array("Character" => array("score"=>array("value"=>-5), "wincount"=>array("value"=>1)));
$WinBoastGameInfo = "win the game";
$LoseBoastGameInfo = "lose the game";


require_once(ROOT_DIR . 'global.php');
